package day5xia;

public class Shape {
    //描述定位的点
    private Point position;


    public Shape(){
        this.position = new Point(0, 0);
    }


    public Shape(Point position){
        this.position = position;
    }

    public Shape(int x,int y){
        this(new Point(x,y));
    }

    public double area(){
        return -1;
    }

    public boolean container(Point p){
        return false;
    }

    public boolean container(int x,int y){
        return container(new Point(x,y));
    }

    public Point getPosition(){
        return position;
    }

    public void setPosition(Point position){
        this.position = position;
    }


}
